Method: Megam::SnapshotsCollection#<<
- Defined in:
- lib/megam/core/snapshots_collection.rb
#<<(*args) ⇒ Object Also known as: push
26 27 28 29 30 31 32 33 |
# File 'lib/megam/core/snapshots_collection.rb', line 26 def <<(*args) args.flatten.each do |a| is_megam_snapshots(a) @snapshots << a @snapshots_by_name[a.account_id] = @snapshots.length - 1 end self end |